#ifndef DBIDENT_H
#define DBIDENT_H

#define MAX_FILE_CACHE  10          // maximum number of opened arch files at once.
#define MAX_FILE_OLD    60          // allow exceed limit, for this period of time.
#define HARD_FILE_LIMIT 40          // Maximum open files at once

#include "main_inc.h"
#include "dbfile.h"

class DBIdent
{
	public:
		DBIdent();
		virtual ~DBIdent();


		FILE *f;
		i32 flags;
		time_t sys_date;
		time_t last_read;

        dbf_header head;
        vector<dbf_bat> bats;
        vector<dbf_block> blocks;

        u32 writable;
        u32 current;
	protected:
	private:
};

#endif // DBIDENT_H
